From: Florian Müllner Date: Thu, 5 Dec 2019 12:29:38 +0000 (+0100) Subject: perf-helper: Remove unused atoms X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~324 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0185c288c3e6b82b76f2a0704aab0e2ab20b75b8;p=gnome-shell.git perf-helper: Remove unused atoms Those aren't used for anything, but make the helper dependent on X11. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/887 --- diff --git a/src/shell-perf-helper.c b/src/shell-perf-helper.c index ba1754e02..a50376e2e 100644 --- a/src/shell-perf-helper.c +++ b/src/shell-perf-helper.c @@ -12,7 +12,6 @@ #include #include -#include #define BUS_NAME "org.gnome.Shell.PerfHelper" @@ -60,12 +59,6 @@ static GOptionEntry opt_entries[] = { NULL } }; -static Display *xdisplay; -static Window xroot; -static Atom atom_wm_state; -static Atom atom__net_wm_name; -static Atom atom_utf8_string; - static guint timeout_id; static GList *our_windows; static GList *wait_windows_invocations; @@ -350,8 +343,6 @@ on_name_lost (GDBusConnection *connection, int main (int argc, char **argv) { - GdkDisplay *display; - GdkScreen *screen; GOptionContext *context; GError *error = NULL; @@ -367,15 +358,6 @@ main (int argc, char **argv) return 1; } - display = gdk_display_get_default (); - screen = gdk_screen_get_default (); - - xdisplay = gdk_x11_display_get_xdisplay (display); - xroot = gdk_x11_window_get_xid (gdk_screen_get_root_window (screen)); - atom_wm_state = gdk_x11_get_xatom_by_name_for_display (display, "WM_STATE"); - atom__net_wm_name = gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_NAME"); - atom_utf8_string = gdk_x11_get_xatom_by_name_for_display (display, "UTF8_STRING"); - g_bus_own_name (G_BUS_TYPE_SESSION, BUS_NAME, G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT |